var vm = new Vue({
    el:"#app",
    data:{
        searchText:'',
        arr:[
            "三文鱼","鱿鱼","草鱼"
        ],
        str:[
            "haha","xixi"
        ],
    },
    methods:{
        bangdin(){
            if(this.searchText){
                this.arr.push(this.searchText);
                this.str.push(this.searchText);
                this.searchText ='';
            }
        }
    }
})